/**
* Created by Jimmy on 2017/7/17.
*/
<template>
    <div class="remark-content">
      <el-button type="danger" icon="el-icon-close" size="mini" circle @click="deleteSelf"></el-button>

      <!--<button type="button" class="btn btn-warning btn-xs operate" v-on:click="deleteSelf">-->
        <!--<span class="glyphicon glyphicon-remove" aria-hidden="true"></span>-->
      <!--</button>-->
      <div class="index">{{ index+1 }}）</div><input type="text" placeholder="请输入备注信息" v-model.number="remark.name"/>
    </div>
</template>

<script>
  export default {
    props: {
      index: Number,
      remark: Object
    },
    methods: {
      deleteSelf: function () {
        this.$emit('deleteRemarkItem', this.index)
      }
    }
  }
</script>

<style scoped>
  .remark-content{
    height: 30px;
    /*background: red;*/
    text-align: left;
    margin: 10px 0;
    display: flex;
    flex-flow: row;
    line-height: 30px;
  }
  .el-button.is-circle{
    /*width: 28px;*/
    height: 28px;
    /*margin-top: 6px;*/
  }
  .operate{
    /*flex: 0 0 20px;*/
    color: white;
    height: 20px;
    margin: 5px 10px 5px 0;
  }
  .remark-content input{
    outline: none;
    flex-grow: 1;
    line-height: 25px;
    padding:  0 10px;
    border: 1px solid #ededed;
  }
  .remark-content input:focus{
    border: 1px solid #e74c3c;
  }
  .remark-content .index{
    flex: 0 0 36px;
  }
</style>
